﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 定时任务
    /// </summary>
    public partial class TScheduledTask
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        public string Title { get; set; }
        /// <summary>
        /// 记录类型
        /// </summary>
        public int? RecordType { get; set; }
        /// <summary>
        /// 记录Id
        /// </summary>
        public int? RecordId { get; set; }
        /// <summary>
        /// 关联Id
        /// </summary>
        public int? RefId { get; set; }
        /// <summary>
        /// 命令内容
        /// </summary>
        [StringLength(200)]
        public string Data { get; set; }
        /// <summary>
        /// 状态：-1-执行失败;0-待执行；1-执行中；2-已完成；
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? FinishedDate { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Msg { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserName { get; set; }
        public int? WarehouseId { get; set; }
        public string WarehouseCode { get; set; }
        public string WarehouseName { get; set; }
        public int? Priority { get; set; }
    }
}
